package com.brkj.util.view;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.os.Bundle;
import android.support.v4.app.ListFragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;
import com.brkj.httpInterface.BaseAjaxParams;
import com.brkj.httpInterface.HttpInterface;
import com.brkj.main.R;
import com.brkj.model.DS_Vote;
import com.brkj.test.TestActivity;
import com.brkj.test.VoteAdapter;
import com.brkj.util.MyAjaxCallBack;
import com.brkj.util.MyApplication;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import net.tsz.afinal.FinalHttp;

import java.lang.reflect.Type;
import java.util.List;

/**
 * Created by colin.ding on 2014/5/7.
 */
public abstract class BaseListFragment extends ListFragment {

    protected View root;
    protected Context mContext;


    public BaseListFragment(Context context){
        mContext = context;
    }


    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        root = inflater.inflate(R.layout.list_fragment, container, false);

        ((BaseCoreActivity)mContext).showToast("onCreateView");

        return root;

    }

    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        fillView();

    }

    protected abstract void fillView();

}